Skip to content

Upgrade to microgrid API v0.18#9

Merged
shsms merged 4 commits into
frequenz-floss:v0.x.xfrom
shsms:api-18
Aug 13, 2025
Merged

Upgrade to microgrid API v0.18#9
shsms merged 4 commits into
frequenz-floss:v0.x.xfrom
shsms:api-18

Conversation

@shsms
Copy link
Copy Markdown
Collaborator

@shsms shsms commented Aug 11, 2025

No description provided.

Copilot AI review requested due to automatic review settings August 11, 2025 12:32
@shsms shsms added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Aug 11, 2025
@shsms shsms requested a review from niklas-timpe August 11, 2025 12:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Upgrade to microgrid API v0.18, updating protobuf definitions and adapting the codebase to use the new electrical component terminology and structure.

  • Updates API submodule and protobuf versions from v1/v1 to v1alpha8/v1alpha18
  • Renames component-related types to electrical component terminology (Component → ElectricalComponent, etc.)
  • Updates metric names from AcActivePower/AcReactivePower to AcPowerActive/AcPowerReactive

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
submodules/frequenz-api-microgrid Updates submodule commit to new API version
src/proto/graph.rs Adapts component graph implementation to new electrical component types and categories
src/proto.rs Updates protobuf module structure to v1alpha8/v1alpha18 versions
src/logical_meter/metric.rs Renames power metrics to new naming convention
src/logical_meter/logical_meter_handle.rs Updates to use new electrical component API calls
src/logical_meter/logical_meter_actor.rs Adapts telemetry handling to new electrical component structure
src/logical_meter/formula/*.rs Updates import paths to new protobuf versions
src/client/*.rs Renames all component methods to electrical component equivalents
examples/logical_meter.rs Updates example to use new metric names
build.rs Points to new protobuf file path
Cargo.toml Updates component graph dependency to compatible version

Comment thread src/proto/graph.rs Outdated
@shsms shsms force-pushed the api-18 branch 2 times, most recently from c498d14 to 2ce9f6c Compare August 11, 2025 12:36
@shsms shsms enabled auto-merge August 11, 2025 12:36
shsms added 4 commits August 11, 2025 15:18
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Rename functions, variables, and instructions related to streaming
component data to use the more specific "electrical component telemetry".

This change improves clarity and makes the client-side code more
consistent with the gRPC service definitions.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
@shsms shsms added this pull request to the merge queue Aug 13, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit ce5ff11 Aug 13, 2025
3 checks passed
@shsms shsms deleted the api-18 branch August 13, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants